﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace BarManager.Core.Entity
{
    [DataContract]
    public class Pool 
    {        
        [DataMember]
        public int Id { get; set; }

        [Required]
        [StringLength(150)]
        [DataType(DataType.MultilineText)]
        [Display(Name = "Descripción")]
        [DataMember]
        public string Descripcion { get; set; }

        [Required]
        [RegularExpression(@"^([0-9]*\,?[0-9]+|[0-9]+\,?[0-9]*)?$",
           ErrorMessage = "Precio por hora invalido (0,00)")]
        [DataType(DataType.Currency)]
        [Display(Name = "Precio por Hora")]
        [DataMember]
        public decimal? PrecioHora { get; set; }

        [Required]       
        [Display(Name = "Fraccion en Minutos")]
        [DataMember]
        public int FraccionMinutos { get; set; }
                
        [DataMember]
        public bool Habilitada { get; set; }
    }
}
